#!/bin/bash
#backup old jar and replace jar

TIME=`date +%Y%m%d` 
OLDNAME="/data/bot_backup/bot-platform-1.0.0.jar_"$TIME
mv /data/bot-platform/bot-platform-1.0.0.jar $OLDNAME
cp /root/.jenkins/workspace/bot-platform/target/bot-platform-1.0.0.jar /data/bot-platform/
